Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/network/src/commonMain/kotlin/org/meshtastic/core/network/HttpClientDefaults.kt 9acdf5309f8f0ab96b30d6505bdac5e93a3bb72c (9acdf530) Text, 1.32 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.network

T8b949e/**
* Shared HTTP client configuration constants used by both Android and Desktop Ktor `HttpClient` setups.
*
* These values are consumed by the platform-specific Koin modules (`NetworkModule` on Android, `DesktopKoinModule` on
* Desktop) when installing [io.ktor.client.plugins.HttpTimeout] and [io.ktor.client.plugins.HttpRequestRetry].
*/
Tff7b72object T56d364HttpClientDefaults Tb4b4b4{
T8b949e/** Timeout in milliseconds for connect, request, and socket operations. */
Tff7b72const Tff7b72val Te6edf3TIMEOUT_MS Tff7b72= T79c0ff3T79c0ff0Te6edf3_000L

T8b949e/** Maximum number of automatic retries on server errors (5xx). */
Tff7b72const Tff7b72val Te6edf3MAX_RETRIES Tff7b72= T79c0ff3
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s